package ifrn.scartissue.client;

public class Client {
	
	private static ClientWindow window;
	private static GameWindow gw;
	private static MarauroaClient client;
	private static boolean logged;

	public static void main(String[] args) {

		System.out.println("----------------------------------------------");
		System.out.println("PROJETO 2013-m-jogo: MMORPG de viagem no tempo");
		System.out.println(" <: -   nenhuma garantia dada   - :> ");
		System.out.println("iniciando cliente...");
		System.out.println("----------------------------------------------");
		
		client = MarauroaClient.get();
		window = new ClientWindow();
	}

	public static void doLogin() {
		logged = true;
		window.setVisible(false);
		if (gw == null) {
			gw = new GameWindow();
		}
		gw.setVisible(true);
	}
	
	public static void doLogout(){
		logged = false;
		gw.setVisible(false);
		window.setVisible(true);
	}
}
